package net.kingborn.erp.uc.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import net.kingborn.erp.uc.dao.CustomerDao;
import net.kingborn.erp.uc.model.Customer;
import net.kingborn.erp.uc.service.CustomerService;
import org.springframework.stereotype.Service;

/**
 * 客户服务实现
 */
@Service
public class CustomerServiceImpl extends ServiceImpl<CustomerDao, Customer> implements CustomerService {
    @Override
    public Customer findByCode(String code) {
        return this.getOne(new QueryWrapper<Customer>().eq("code", code));
    }

}
